package com.vcourse.service.edu.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author Zengsh123
 * @date 2020-06-02 19:28
 */
@Data
@Accessors(chain = true)
public class SubjectVo implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;
    private String title;
    private Integer sort;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<SubjectVo> children = new ArrayList<>();
}
